package com.teamventure.app.util;

public class UserData {

	public final static String PREFS_LOC = "/Android/data/com/teamventure/app/files/prefs.txt";
	
	private static UserData theUserData = new UserData();
	
	private String username = "";
	private String password = "";
	private Connect conn = new Connect();
	
	private UserData() {
		
	}
	
	public static UserData getUserData() {
		synchronized(theUserData){
			if(theUserData == null) {
				theUserData = new UserData();
			}
		}
		return theUserData;
	}
	
	public void setUsername(String username) {
		this.username = username;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getUsername() {
		return this.username;
	}
	
	public String getPassword() {
		return this.password;
	}
	
	public void closeConnection() {
		this.conn.close();
	}
	
	public Connect getConnection() {
		return this.conn;
	}
}
